/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;


namespace JDCloudSDK.Vod.Model
{

    /// <summary>
    ///  采样截图模板配置信息
    /// </summary>
    public class SnapshotTemplateSampleConfigInfo
    {

        ///<summary>
        /// 截图开始时间，单位毫秒，缺省值为 0
        ///</summary>
        public long? StartTime{ get; set; }
        ///<summary>
        /// 截图间隔时间，单位毫秒，缺省值为 0
        ///</summary>
        public long? IntervalTime{ get; set; }
        ///<summary>
        /// 最大截图张数，取值必须大于 0，缺省值为 10
        /// 若 intervalTime 为 0，则从 startTime 开始，平均截取 number 张图片；
        /// 若 intervalTime 不为 0, 则从 startTime 开始，依次间隔截图，最多截取 number 张图片；
        /// 
        ///</summary>
        public int? Number{ get; set; }
        ///<summary>
        /// 截图存储格式。取值范围：png、jpg
        ///</summary>
        public string Format{ get; set; }
        ///<summary>
        /// 截图帧类型。取值范围：any、key
        ///</summary>
        public string FrameType{ get; set; }
        ///<summary>
        /// 截图宽度，单位 px，缺省值为 0
        ///</summary>
        public int? Width{ get; set; }
        ///<summary>
        /// 截图高度，单位 px，缺省值为 0
        /// 若 width、height 都不为 0，则截图分辨率为 width * height
        /// 若 width、height 某一项为 0，则该项随另一项等比缩放
        /// 若 width、height 两项都为 0, 则截图分辨率随源视频
        /// 
        ///</summary>
        public int? Height{ get; set; }
        ///<summary>
        /// 填充方式。取值范围：
        /// - stretch 伸缩
        /// - black 留黑
        /// - white 留白
        /// - gauss 高斯模糊
        /// 
        ///</summary>
        public string FillType{ get; set; }
    }
}
